# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-requests
pkgver=2.28.1
pkgrel=0
pkgdesc="HTTP request library for Python3"
url="http://www.python-requests.org/"
arch="noarch"
license="Apache-2.0"
# Requirements for tests are not available in main
options="!check"
depends="
	py3-certifi
	py3-charset-normalizer
	py3-idna
	py3-urllib3
	python3
	"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/r/requests/requests-$pkgver.tar.gz"
builddir="$srcdir/requests-$pkgver"

replaces="py-requests" # Backwards compatibility
provides="py-requests=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c123ec07171c2c7c34e4173b97750adfa313b4312d91c0d58e4eb8750361604017e5b370c23ec886d2cbf704f9074ec5ad0fa9c2cd8e6f9521532adafff39d41  requests-2.28.1.tar.gz
"
